package com.oa.admin.dto;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class FixedAssetsAddDTO {

    @ApiModelProperty(value = "资产类别")
    @NotNull(message = "<资产类别>字段<assetsType>不能为空！")
    private String assetsType;

    @ApiModelProperty(value = "资产名称")
    @NotNull(message = "<资产名称>字段<assetsName>不能为空！")
    private String assetsName;

    @ApiModelProperty(value = "资产编号")
    private String assetsNum;

    @ApiModelProperty(value = "型号规格")
    private String assetsModel;

    @ApiModelProperty(value = "资产图片")
    @NotNull(message = "<资产图片>字段<assetsImg>不能为空！")
    private String assetsImg;

    @ApiModelProperty(value = "采购金额")
    @NotNull(message = "<采购金额>字段<assetsAmount>不能为空！")
    private String assetsAmount;

    @ApiModelProperty(value = "购入时间")
    @NotNull(message = "<购入时间>字段<buyTime>不能为空！")
    private Date buyTime;

    @ApiModelProperty(value = "有效截止日期")
    @NotNull(message = "<有效截止日期>字段<stopTime>不能为空！")
    private Date stopTime;

    @ApiModelProperty(value = "使用部门（部门id）")
    @NotNull(message = "<使用部门>字段<departmentId>不能为空！")
    private String departmentId;

    @ApiModelProperty(value = "使用人员（用户id）")
    @NotNull(message = "<使用人员>字段<userId>不能为空！")
    private String userId;

    @ApiModelProperty(value = "供应商")
    @NotNull(message = "<供应商>字段<supplierName>不能为空！")
    private String supplierName;

    @ApiModelProperty(value = "负责人")
    @NotNull(message = "<负责人>字段<dutyName>不能为空！")
    private String dutyName;

    @ApiModelProperty(value = "联系人")
    @NotNull(message = "<联系人>字段<contactName>不能为空！")
    private String contactName;

    @ApiModelProperty(value = "联系电话")
    @NotNull(message = "<联系电话>字段<contactPhone>不能为空！")
    private String contactPhone;

    @ApiModelProperty(value = "维保到期日")
    @NotNull(message = "<维保到期日>字段<expiredTime>不能为空！")
    private Date expiredTime;

    @ApiModelProperty(value = "维保说明")
    @NotNull(message = "<维保说明>字段<warrantyDepict>不能为空！")
    private String warrantyDepict;


}
